If the document contains changes that you have not saved, you are prompted to save the changes.
Related Topics
Closing Files